'''
    1 默认等待时间
    2 强制等待时间
    3 获取input的value
    3 获取元素属性值


'''

from playwright.sync_api import sync_playwright,expect


def test2_baidu():
    with sync_playwright() as p:
        browser = p.chromium.launch(headless=False)
        page = browser.new_page()

        page.set_default_timeout(5000)
        page.goto('http://www.baidu.com')
        expect(page).to_have_title('百度一下，你就知道')



if  __name__ == '__main__':
    test2_baidu()
    pass



